package com.itHsuSE.demo2;

public class MethodExer {
    public static void main(String[] args) {
        AA aa=new AA();
        System.out.println(aa.isOdd(2));

        BB bb=new BB();
        bb.print(5,4);
    }
}

class AA{
    public boolean isOdd(int num){
        if(num%2!=0){
            return true;
        }else {
            return false;
        }
    }
}

class BB{
    public void print(int r,int c){
        for (int i = 0; i < r; i++) {
            for (int j = 0; j < c; j++) {
                System.out.print("#");
            }
            System.out.println();
        }
    }
}